const customRequst = require('../../common/customRequst.js');

Page({

  data: {
    InfoData: {}
  },

  onLoad: function (options) {
    console.log(options.id)
    let id = options.id
    this.getInfoData(id)
  },

  getInfoData(id) {
    let that = this;
    customRequst.postRequest('api/sysnotice/detail', {
      id: id
    }).then(res => {
      if (res.code == 1) {
        that.setData({
          InfoData: res.data
        })
      }
    })
  }
})